package com.lifa.controller;

import com.lifa.dao.JueseDao;
import com.lifa.entity.Huiyuan;
import com.lifa.entity.Juese;
import com.lifa.service.HuiYuanService;
import com.lifa.service.JueseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/juese")
@Scope("prototype")
public class JueseController {
    @Autowired
    private JueseService jueseService;
    @Autowired
    private JueseDao jueseDao;
    @RequestMapping("/test1")
    @ResponseBody
    public List<Juese> query(){
        List<Juese> list = jueseDao.query();
        for (Juese juese:list){
            System.out.printf(juese.getJuese_Id()+"---"+juese.getJuese_Name());
        }
        return list;
    }
}
/**
 * 123
 */